package utils;

import javax.swing.JFrame;
import javax.swing.JOptionPane;

public abstract class MessageBox {

	public static void Error(String title, String message) {
		JOptionPane.showMessageDialog(new JFrame(), message, title,
				JOptionPane.ERROR_MESSAGE);
	}

	public static void Warning(String title, String message) {
		JOptionPane.showMessageDialog(new JFrame(), message, title,
				JOptionPane.WARNING_MESSAGE);
	}

	/**
	 * DEVUELVE 0: YES <br>
	 * DEVUELVE 1: NO
	 */
	public static int YesNo(String title, String message) {
		return JOptionPane.showConfirmDialog(new JFrame(), message, title,
				JOptionPane.YES_NO_OPTION);
	}

}
